package com.capa

import android.app.Application
import android.content.Context
import com.capa.utils.SPreference
import com.iflytek.cloud.SpeechConstant
import com.iflytek.cloud.SpeechUtility

class MyApp : Application() {


    override fun onCreate() {
        super.onCreate()

        instance = this
        SpeechUtility.createUtility(this, SpeechConstant.APPID + "=6ccedc6f");
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        instance = this
    }


    companion object {
        private var instance: Application? = null
        fun get(): MyApp {
            return instance as MyApp
        }
    }
}